using IcsSEMCtrl.Event.Device;
using Lifter.Global;
using System;
namespace Lifter.Event.Lifter
{
    [Serializable]
    public class HostControlStateEvent : DeviceEvent
    {
        public static readonly string CLASS = "HostControlStateEvent";
        public static readonly string SPECIFIC_SUBJECT = "ControlState";
        public new static readonly string SUBJECT = DeviceEvent.SUBJECT + "." + HostControlStateEvent.SPECIFIC_SUBJECT;
        private enumHostControlState hostControlState;
        public enumHostControlState HostControlState
        {
            get
            {
                return this.hostControlState;
            }
            set
            {
                this.hostControlState = value;
            }
        }
        public HostControlStateEvent(string deviceId, string deviceType, enumHostControlState hostControlState) : base(deviceId, deviceType)
        {
            this.hostControlState = hostControlState;
        }
        protected new string CreateSubject(string id)
        {
            return HostControlStateEvent.FormSubject(id);
        }
        public new static string FormSubject(string id)
        {
            return HostControlStateEvent.SUBJECT + "." + id;
        }
    }
}
